#include "CreateBulletMessage.h"
#include "Enemies/FlyingEnemy.h"

CCreateBulletMessage::CCreateBulletMessage(CFlyingEnemy* pBullet) : CMessage(Msg_CreateBullet)
{
	bulletOwner = pBullet;
	bulletOwner->AddRef();
}

CCreateBulletMessage::~CCreateBulletMessage(void)
{
	if (bulletOwner != nullptr)
	{
		bulletOwner->Release();
	}
	bulletOwner = nullptr;
}
